<?php 
function sinagrabimg($value){

			  $wsdl_local = 'huanqiu_attachment.wsdl';
			  ini_set("soap.wsdl_cache_enabled", "0");
			  $soap = new SoapClient($wsdl_local, array('trace' => 1));
			  $soap_key = '0615CrJ5BRBM0hDSAekwX4sicWMZrN9DKHFdNAaEGkJHTC/O1snAdJlom4LHbk5o+pf8OawbTYQQ6NPgG5hlMvmF0Uw5IBBdZpmnVQLCbib4XvF+iAq67XM+58IDo2M';
			  $file[0]['name'] = 'tests.jpg';
			  $file[0]['size'] = '143360';
			  $file[0]['error'] = '200';
			  $file[0]['filecontent'] = base64_encode(file_get_contents($value));
			  $soap_result_arr = $soap->upload($file,17,$soap_key,444,1);
			  $fileurl = $soap_result_arr['filesuccess'][0]['imgurl'];
          return  $fileurl;

}

if( isset($_GET['url']) && !empty($_GET['url']) ){
	echo '<img src="'.sinagrabimg($_GET['url']).'"/>';
}else{
	echo "请输入url地址！";
}
